package com.lagou.edu.service;

import javax.servlet.http.HttpServletResponse;

/**
 * @Description TODO
 * @Classname IUserServer
 * @Date 2021/5/30 16:43
 * @Author ch'ien
 */
public interface IUserServer {

    /**
     * 用户注册
     *
     * @param email 邮箱
     * @param password 密码
     * @param code 验证码
     * @return 200 成功
     */
    int register(String email, String password, String code);

    String login(String email, String password, HttpServletResponse response);

    boolean isRegistered(String email);

    String info(String token);
}
